extends Node

#单例 在Autoload中定义
var rounds = [] #所有关卡
var currentBigRound = 1 #当前大关卡
var currentSmallRound = 1 #当前小关卡
var scoreFire = 50 #分数火焰
var magFire = 5 #倍率火焰

var roundData = [
	{"roundId":"1-1","targetScore":500,"roundName":"东1","roundDetail":"-","isPass":false},
	{"roundId":"1-2","targetScore":1500,"roundName":"南1","roundDetail":"-","isPass":false},
	{"roundId":"1-3","targetScore":2000,"roundName":"西1","roundDetail":"-","isPass":false},
	{"roundId":"1-4","targetScore":2500,"roundName":"北1","roundDetail":"-","isPass":false},
	{"roundId":"1-5","targetScore":3000,"roundName":"庄1","roundDetail":"这里是庄1","isPass":false},
	{"roundId":"2-1","targetScore":3500,"roundName":"东2","roundDetail":"-","isPass":false},
	{"roundId":"2-2","targetScore":4000,"roundName":"南2","roundDetail":"-","isPass":false},
	{"roundId":"2-3","targetScore":5000,"roundName":"西2","roundDetail":"-","isPass":false},
	{"roundId":"2-4","targetScore":6000,"roundName":"北2","roundDetail":"-","isPass":false},
	{"roundId":"2-5","targetScore":8000,"roundName":"庄2","roundDetail":"这里是庄2","isPass":false},
	{"roundId":"3-1","targetScore":10000,"roundName":"东3","roundDetail":"-","isPass":false},
	{"roundId":"3-2","targetScore":13000,"roundName":"南3","roundDetail":"-","isPass":false},
	{"roundId":"3-3","targetScore":16000,"roundName":"西3","roundDetail":"-","isPass":false},
	{"roundId":"3-4","targetScore":19000,"roundName":"北3","roundDetail":"-","isPass":false},
	{"roundId":"3-5","targetScore":25000,"roundName":"庄3","roundDetail":"这里是庄3","isPass":false},
	{"roundId":"4-1","targetScore":30000,"roundName":"东4","roundDetail":"-","isPass":false},
	{"roundId":"4-2","targetScore":35000,"roundName":"南4","roundDetail":"-","isPass":false},
	{"roundId":"4-3","targetScore":40000,"roundName":"西4","roundDetail":"-","isPass":false},
	{"roundId":"4-4","targetScore":45000,"roundName":"北4","roundDetail":"-","isPass":false},
	{"roundId":"4-5","targetScore":60000,"roundName":"庄4","roundDetail":"这里是庄4","isPass":false}
]

func _init():
	loudRounds()
	
func loudRounds():
	for item in roundData:
		var round = RoundClass.new(item["roundId"], item["targetScore"], item["roundName"], item["roundDetail"], item["isPass"])
		rounds.append(round)
